﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShangBaoSelect.aspx.cs"
    Inherits="EnvironmentManagerSystem.ShangBao.ShangBaoSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>汇总上报</title>
    <%--DIV--%>

    <script type="text/javascript" src="../js/jquery-1.3.2-vsdoc2.js"></script>

    <script src="../Script/artDialog.js?skin=aero" type="text/javascript"></script>

    <script src="../Script/iframeTools.js" type="text/javascript"></script>

    <script src="../Script/ShowMinPage.js" type="text/javascript"></script>

    <%--DIV--%>
    <link href="../Style/css.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            font-size: 12px;
        }
        .a
        {
            text-decoration: underline;
        }
    </style>
</head>
<body style="background: #e0e2e7; overflow: visible;">
    <form id="form1" runat="server" style="width: 100%">
    <div>
        <table style="width: 100%;" align="center">
            <tr>
                <td align="right">
                    &nbsp;&nbsp;&nbsp;&nbsp;项目名称：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProjectName" Width="120" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    环境单位：
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlhp" Width="195" runat="server" AutoPostBack="True" DataTextField="EIAUnitName"
                        DataValueField="id">
                    </asp:DropDownList>
                </td>
                <td>
                    上报状况：
                </td>
                <td>
                    <asp:DropDownList ID="ddlShangbao" runat="server" Width="180">
                        <asp:ListItem>请选择</asp:ListItem>
                        <asp:ListItem>全部</asp:ListItem>
                        <asp:ListItem>已上报</asp:ListItem>
                        <asp:ListItem>未上报</asp:ListItem>
                        <asp:ListItem>退回</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="10" align="right">
                    <asp:Button ID="lbtnSelect" CssClass="anniu1" runat="server" Text="查询" OnClick="lbtnSelect_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="lbtReset" runat="server" CssClass="anniu1" Text="重置" OnClick="lbtReset_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnShangbao" runat="server" CssClass="anniu1" Text="上报" OnClick="btnShangbao_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="10">
                    <br />
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        OnSorting="GridView1_Sorting" ForeColor="#333333" GridLines="Vertical" Width="100%"
                        BorderColor="Silver" OnDataBound="GridView1_DataBound">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F0F2F3" Font-Size="12px" Height="16px" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <Columns>
                            <asp:TemplateField HeaderText="" SortExpression="id">
                                <ItemTemplate>
                                    <div align="center">
                                        <input id="cbx" type="checkbox" runat="server" value='<%# Eval("ID") %>' /></div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="序号" SortExpression="id">
                                <ItemTemplate>
                                    <div align="center">
                                        <%# Eval("ID") %></div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="项目名称" SortExpression="ProjectName">
                                <ItemTemplate>
                                    <div align="center">
                                        <a class="a" onmouseout="MM_swapImgRestore()" onclick="frm.show('EvaluationUnitManager/EUMmain.aspx?ProjectName=<%# Eval("ProjectName") %>','项目查询',1250,1300,700)">
                                            <%# Eval("ProjectName") %></a>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="建设单位名称" SortExpression="ProjectName">
                                <ItemTemplate>
                                    <div align="center">
                                        <%# Eval("AClassName") %></div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="环评单位名称" SortExpression="ProjectName">
                                <ItemTemplate>
                                    <div align="center">
                                        <%# Eval("dd") %></div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="上报状态" SortExpression="ProjectName">
                                <ItemTemplate>
                                    <div align="center">
                                        <%#(Eval("reportstate").ToString() == "1" ? "未上报" : Eval("reportstate").ToString() == "2" ? "退回" : Eval("reportstate").ToString() == "3" ? "已上报" : "")%></div>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle Font-Bold="True" ForeColor="#00286F" CssClass="right_list01_tit" BackColor="#507CD1" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
